
local meta = FindMetaTable( "Player" );

if( CLIENT ) then

	function GetString( var )
	
		return LocalPlayer():GetNWString( var );
	
	end
	
end

function meta:GetRPName()

	return self:GetNWString( "RPName" );

end

function meta:GetGroupID()

	return tonumber( self:GetField( "group_id" ) );

end

function meta:GetUID()

	return self:GetField( "uid" );

end

function meta:IsSprinting()   
   
   return self:KeyDown( IN_SPEED )  
   
end  
   
function meta:IsWalking()  
   
   return not self:KeyDown( IN_SPEED )  
   
end 

function meta:IsCitizen()

	if( self:Team() == 1 ) then
		return true;
	end
	
	return false;

end

function meta:IsMale()

	return !self:IsFemale();

end

function meta:IsFemale()

	if( string.find( string.lower( self:GetModel() ), "female" ) ) then
	
		return true;
	
	end
	
	return false;

end
  
function meta:IsCombine()

	if( self:Team() == 2 or self:Team() == 3 or self:Team() == 4 or
		self:Team() == 5 ) then
		return true;
	end
	
	return false;

end

function meta:IsCombineDefense()

	if( self:Team() == 2 or self:Team() == 3 or self:Team() == 4 ) then
		return true;
	end
	
	return false;

end

function meta:IsVort()

	if( self:GetPlayerFaction() == "Vort" ) then return true; end
	
	return false;
	
end

local CPModels =
{

	"models/police.mdl",

};

function meta:HasCPModel()

	for k, v in pairs( CPModels ) do
	
		if( string.lower( self:GetModel() ) == string.lower( v ) ) then
		
			return true;
		
		end
	
	end
	
	return false;

end

function meta:IsCP()

	if( self:Team() == 2 ) then
		return true;
	end
	
	return false;

end

function meta:IsOW()

	if( self:Team() == 3 ) then
		return true;
	end
	
	return false;

end
 
function meta:IsOWElite()

	if( self:Team() == 4 ) then
		return true;
	end
	
	return false;

end

function meta:IsCOTA() 

	if( self:Team() == 3 or self:Team() == 4 ) then
		return true
	end

	return false
	
end	

function meta:IsCA()

	if( self:Team() == 5 ) then
		return true;
	end
	
	return false;	

end
